  -- Grand Warlock Alythess --
function spell0_25166(pUnit, Event) --@Blaze,n/a--
pUnit:FullCastSpellOnTarget(45235,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25166', 2500, 1)
end
function spell1_25166(pUnit, Event) --@Conflagration,n/a--
pUnit:FullCastSpellOnTarget(45333,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25166', 782, 1)
end
function spell2_25166(pUnit, Event) --@Conflagration,n/a--
pUnit:FullCastSpellOnTarget(45342,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25166', 13500, 1)
end
function spell3_25166(pUnit, Event) --@Empower,Heal--
pUnit:FullCastSpellOnTarget(45366,pUnit)
pUnit:RegisterEvent('Sorts_25166', 785, 1)
end
function spell4_25166(pUnit, Event) --@Fireblast,Heal--
pUnit:FullCastSpellOnTarget(45232,pUnit)
pUnit:RegisterEvent('Sorts_25166', 713, 1)
end
function spell5_25166(pUnit, Event) --@Flame Sear,Heal--
pUnit:FullCastSpellOnTarget(46771,pUnit)
pUnit:RegisterEvent('Sorts_25166', 6000, 1)
end
function spell6_25166(pUnit, Event) --@Pyrogenics,Heal--
pUnit:FullCastSpellOnTarget(45230,pUnit)
pUnit:RegisterEvent('Sorts_25166', 15367, 1)
end
function spell7_25166(pUnit, Event) --@Shadow Nova,Heal--
pUnit:FullCastSpellOnTarget(45329,pUnit)
pUnit:RegisterEvent('Sorts_25166', 3500, 1)
end
function Sorts_25166(pUnit, Event)
choix_sorts_25166 = math.random(0, 7)
if choix_sorts_25166 == 0 then
pUnit:RegisterEvent('spell0_25166', 1, 1)
end
if choix_sorts_25166 == 1 then
pUnit:RegisterEvent('spell1_25166', 1, 1)
end
if choix_sorts_25166 == 2 then
pUnit:RegisterEvent('spell2_25166', 1, 1)
end
if choix_sorts_25166 == 3 then
pUnit:RegisterEvent('spell3_25166', 1, 1)
end
if choix_sorts_25166 == 4 then
pUnit:RegisterEvent('spell4_25166', 1, 1)
end
if choix_sorts_25166 == 5 then
pUnit:RegisterEvent('spell5_25166', 1, 1)
end
if choix_sorts_25166 == 6 then
pUnit:RegisterEvent('spell6_25166', 1, 1)
end
if choix_sorts_25166 == 7 then
pUnit:RegisterEvent('spell7_25166', 1, 1)
end
end
function mob25166_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25166', math.random(1500, 3000), 1)
end
function mob25166_Leave(pUnit, Event)
end
function mob25166_Kill(pUnit, Event)
end
function mob25166_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(25166, 1, 'mob25166_Action')
RegisterUnitEvent(25166, 2, 'mob25166_Leave')
RegisterUnitEvent(25166, 3, 'mob25166_Kill')
RegisterUnitEvent(25166, 4, 'mob25166_Die')
